import 'package:flutter_taotaoshipin/generated/json/base/json_field.dart';
import 'package:flutter_taotaoshipin/generated/json/pay_config_list_entity.g.dart';
import 'dart:convert';
export 'package:flutter_taotaoshipin/generated/json/pay_config_list_entity.g.dart';

@JsonSerializable()
class PayConfigListEntity {
	@JSONField(name: "List")
	List<PayConfigListList>? list = [];
	@JSONField(name: "pay_switch")
	int? paySwitch = 0;
	@JSONField(name: "pay_switch_app_id")
	String? paySwitchAppId = '';
	@JSONField(name: "pay_switch_kf_url")
	String? paySwitchKfUrl = '';
	@JSONField(name: "pay_switch_corp_id")
	String? paySwitchCorpId = '';
	@JSONField(name: "sub_deduct_times")
	int? subDeductTimes = 0;
	@JSONField(name: "user_sub_times")
	int? userSubTimes = 0;

	PayConfigListEntity();

	factory PayConfigListEntity.fromJson(Map<String, dynamic> json) => $PayConfigListEntityFromJson(json);

	Map<String, dynamic> toJson() => $PayConfigListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class PayConfigListList {
	String? cname = '';
	String? code = '';
	String? account = '';
	int? platform = 0;

	PayConfigListList();

	factory PayConfigListList.fromJson(Map<String, dynamic> json) => $PayConfigListListFromJson(json);

	Map<String, dynamic> toJson() => $PayConfigListListToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}